package com.example.fbztest_vue.tasks;


import ch.qos.logback.core.util.FileUtil;
import com.example.fbztest_vue.utils.VideoUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.util.http.fileupload.FileUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.io.File;

@Component
@EnableScheduling
@Slf4j
public class VideoTask {

//    @Autowired
//    VideoUtils videoUtils;

//    @Scheduled(fixedDelay = 1000)
//    public void jpgToAvi() throws Exception {
//        String dir="d://headers";
//        File dirF=new File(dir);
//
//        FileUtils.deleteDirectory(dirF);
//        dirF.mkdirs();
//        String fileName="d://videos/test.avi";
//        videoUtils.jpgToAvi(dir,fileName);
//    }
}
